//配置路由相关信息
import VueRouter from "vue-router";
import Vue from "vue";

//安装插件
Vue.use(VueRouter);


//创建对象
const routes = [
  {
    path: "/",
    redirect: "/index",
  },
  {
    path: "/white",
    component: () => import("../view/white.vue"),
  },
  {
    path: "/login",
    component: () => import("../components/pages/Login.vue"),
  },
  {
    path: "/EPC",
    component: () => import("../view/EPC/EPC.vue"),
  },

  {
    path: "/error",
    component: () => import("../components/pages/Error.vue"),
  },
  {
    path: "/404",
    component: () => import("../components/pages/404.vue"),
  },
];

const router = new VueRouter({
  // mode: "history",
  routes
});



export default router;
